package netWorkPrograming.tcp.tcp06;

import netWorkPrograming.tcp.tcp04.WriterThread;

import java.io.IOException;
import java.net.Socket;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/5/28
 */
public class ClientDemo {
    public static void main(String[] args) {
        System.out.println("--------------客户端-------------");
        try {
            Socket socket=new Socket("127.0.0.1",8888);
            new Thread(new WriterThread(socket)).start();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
